package com.berchen.数据结构.二叉树.赫夫曼编解码;


public class HuffmanNode {

    Byte data;  // 字符
    int weight; // 权重

    HuffmanNode left;
    HuffmanNode right;

    public HuffmanNode(Byte data, int weight) {
        this.data = data;
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "HuffmanNode{" +
                "data=" + data +
                ", weight=" + weight +
                '}';
    }
}
